home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / d.arc / D.DOC < prev    next >
Text File  |  1987-02-03  |  3KB  |  77 lines

  1. D.DOC, 02/03/87
  2.  
  3. D.COM is a program to help you organize your hard disk, or diskette.
  4.  
  5. It does so by telling you what files have been added, or erased, from
  6. a "list" of files, which D.COM maintains in D.DAT.
  7.  
  8. The following is an EXACT copy of what shows up on your screen if you
  9. type D H - which is documented as how to get HELP:
  10.  
  11.     ----------------
  12.  
  13. D.COM as of 02/01/87; Type D H  for HELP
  14.  
  15. D.COM by Ward Christensen - Helps keep your Directories clean.  Detailed help:
  16. D SET        sets all filenames on disk into D.DAT
  17.         and writes it back to the current directory.
  18. D        shows added/erased files since D SET was done
  19. D ADD fn.ft    adds ("registers") a file(s) into D.DAT
  20. D DEL fn.ft    deletes  ("unregisters") file(s) from D.DAT
  21. D CU        Cleans Up by asking, for each file, if you want to:
  22.         (E)rase from disk
  23.         (A)dd ("register") into D.DAT
  24.         (D)elete ("un-register") from D.DAT
  25. D fn.ft     6-up directory list (e.g. D *.* or D *.ASM)
  26.         (avoid fn of SET, ADD, DEL, CU)
  27.  
  28. Typical usage:    What        When/why
  29.         D SET        ONCE: per directory - it writes D.DAT
  30.                     to that dir
  31.         D        any time: to see whats new or erased
  32.         D CU        periodically: to "Clean Up" your directory
  33.  
  34.     ----------------
  35.  
  36. NOTE, that if, for some reason, you want to use D.COM the way I "originally
  37. wrote it", namely having the list of files (now in D.DAT) kept right IN
  38. D.COM, and having D.COM write itself back, you can PATCH the object module,
  39. I believe the address is 1a1, to a zero.  There is documentation in the
  40. COM file that says:
  41.     set this <> 0 to use data files:_
  42. and where the _ is, is currently an 01h, which you can patch to 00h
  43. to have D update itself.
  44.  
  45. NOTE further that the "buggy" version of D.COM uploaded to Compuserve in
  46. about mid-January '87, has been resolved - by changing the technique used
  47. to write D.COM back: I do a handle open, and write it in one long write,
  48. which circumvents the still unknown problem of writing back by doing an
  49. FCB open, changing DMA, and writing 128 byte chunks.  It also there
  50. runs faster.
  51.  
  52. THE FUTURE:  I COULD make D.com much more than it is - for example, when
  53. doing the CU (cleanup) option, it would be nice to "shell" to things
  54. like Vern Buerg's LIST program (browse), or to just type the file,
  55. or to debug it, etc - so you can better decide what you want to do with
  56. the file.
  57.  
  58. The VERY BEST use of D.com is to run it when you install a new package.
  59. For example, suppose you install DBASE in a subdirectory DBASE, and
  60. that you want to do all your programming etc in that subdirectory.
  61.  
  62. Just place D.COM anywhere on your execution path, CD to DBASE, then type:
  63.     d set
  64. which will create d.dat in the dbase directory.  Subsequently typing: D
  65. will show you what files have been added (or erased) - and by doing
  66. D now and then, then D CU when you want to 'register' files, you will
  67. readily be able to keep your directories unclutterd from unwanted
  68. files that otherwise might be 'lost' in the full directory listing.
  69.  
  70.     ----------------
  71.  
  72. Ward Christensen 76703,302
  73.  
  74. P.S. I place this program in the public domain with NO RESTRICTIONS.
  75. Of course, I would be disappointed to see it being distributed for
  76. profit.
  77.